-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
proper handling of help commands (fixes #2154) #2319
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
internal/ui/prompt.go
Outdated
@@ -122,6 +122,14 @@ func (p *Prompt) SendStrokes(s string) { | |||
} | |||
} | |||
|
|||
// SetInactive sets the prompt is inactive. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Perhaps Deactivate
might be a better name since we are not setting
any value?
Also doc could say something like: ... sets the prompt as
inactive?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed. Sorry my English is not that good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tx Jayson! nw - I shall not cast that first stone...
1bae020
to
210941c
Compare
210941c
to
c469b6a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wjiec Thank you for the updates Jayson!!
this PR fixes #2154.
Steps to reproduce the problem:
:
or/
to open prompt bar?
ESC
to close the help pageThere is an extra prompt bar on the page and it cannot be closed by ESC.
This PR fixes the above problem, and also fixes the problem of unable to open the help page with the
help
orh
commands.Fixes #2154